
#include "Paper.h"

Paper::Paper(int state) {
	this->x = 0;
	this->y = 0;
	this->z = 0;
	this->angle = 0;
	this->state = state;

	this->dimX = 0;
	this->dimZ = 0;
	this->cut = 0;
}

Paper::Paper(int state, float x1, float y1, float z1) {
	this->x = x1;
	this->y = y1;
	this->z = z1;
	this->angle = 0;
	this->state = state;

	this->dimX = 0;
	this->dimZ = 0;
	this->cut = 0;
}

float Paper::getX() {
	return x;
}

float Paper::getY() {
	return y;
}
	
float Paper::getZ() {
	return z;
}

float Paper::getDimX() {
	return dimX;
}

float Paper::getDimZ() {
	return dimZ;
}
	
float Paper::getAngle() {
	return angle;
}

float Paper::getState() {
	return state;
}

int Paper::getCut() {
	return cut;
}

void Paper::setX(float newX) {
	x = newX;
}

void Paper::setY(float newY) {
	y = newY;
}

void Paper::setZ(float newZ) {
	z = newZ;
}

void Paper::setDimZ(float newZ) {
	dimZ = newZ;
}

void Paper::setDimX(float newX) {
	dimX = newX;
}

void Paper::setCut(int c){
	cut = c;
}
void Paper::setAngle(float newAngle) {
	angle = newAngle;
}

void Paper::setState(float newState) {
	state = newState;
}

void Paper::reset() {
	this->x = 0;
	this->y = 0;
	this->z = 0;
	this->angle = 0;
	this->state = PAPER_PRINTING;

	this->dimX = 0;
	this->dimZ = 0;
	this->cut = 0;
}

void Paper::setCoords(float x1, float y1, float z1) {
	this->x = x1;
	this->y = y1;
	this->z = z1;
}